import request from "@/utils/request";

// 医院列表
export function hospitalList(data) {
  return request({
    url: "/chronicdisease/plat/hospitalList",
    method: "post",
    data: data,
  });
}
//所有医院
export function hospitalAllList(data) {
  return request({
    url: "/chronicdisease/plat/hospitalAllList",
    method: "post",
    data: data,
  });
}
// 省市区列表
export function provinceList(data) {
  return request({
    url: "/chronicdisease/plat/provinceList",
    method: "post",
    data: data,
  });
}
// 医院等级列表
export function listHospitalLevel(data) {
  return request({
    url: "/chronicdisease/plat/listHospitalLevel",
    method: "post",
    data: data,
  });
}
// 新增医院
export function saveHospital(data) {
  return request({
    url: "/chronicdisease/plat/saveHospital",
    method: "post",
    data: data,
  });
}
// 删除医院
export function delHospital(data) {
  return request({
    url: "/chronicdisease/plat/delHospital",
    method: "post",
    data: data,
  });
}
// 重置医院管理员密码
export function resetPwdForHospital(data) {
  return request({
    url: "/chronicdisease/plat/resetPwdForHospital",
    method: "post",
    data: data,
  });
}
// 科室-列表
export function departmentList(data) {
  return request({
    url: "/chronicdisease/hospital/departmentList",
    method: "post",
    data: data,
  });
}
//新增/修改科室
export function saveDepartment(data) {
  return request({
    url: "/chronicdisease/hospital/saveDepartment",
    method: "post",
    data: data,
  });
}
//删除科室
export function delDepartment(data) {
  return request({
    url: "/chronicdisease/hospital/delDepartment",
    method: "post",
    data: data,
  });
}
// 职务-列表
export function postList(data) {
  return request({
    url: "/chronicdisease/hospital/postList",
    method: "post",
    data: data,
  });
}
//新增/修改职务
export function savePost(data) {
  return request({
    url: "/chronicdisease/hospital/savePost",
    method: "post",
    data: data,
  });
}
//删除职务
export function delPost(data) {
  return request({
    url: "/chronicdisease/hospital/delPost",
    method: "post",
    data: data,
  });
}

//血压基准及提醒等级配置-查询
export function getBloodStandard(data) {
  return request({
    url: "/chronicdisease/hospital/getBloodStandard",
    method: "post",
    data: data,
  });
}

//血压基准及提醒等级配置-新增/修改
export function saveBloodStandard(data) {
  return request({
    url: "/chronicdisease/hospital/saveBloodStandard",
    method: "post",
    data: data,
  });
}

//未绑定设备下拉查询
export function unbindList(data) {
  return request({
    url: "/chronicdisease/plat/unbindList",
    method: "post",
    data: data,
  });
}

//更换医生申请-审核
export function approveDoctorChangeApply(data) {
  return request({
    url: "/chronicdisease/hospital/approveDoctorChangeApply",
    method: "post",
    data: data,
  });
}
